package com.cmc6.user.model.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * {@link com.cmc6.websocket.model.entity.SocketDO}
 */
@Data
public class LoginDTO {

    @Size(max = 100)
    @NotBlank
    @ApiModelProperty(value = "登录的账号：邮箱/手机号/用户自定义id", required = true)
    private String account;

    @NotBlank
    @ApiModelProperty(value = "前端加密之后的密码", required = true)
    private String password;

    @ApiModelProperty(value = "记住我")
    private boolean rememberMe;

}
